import AppDataSource from "./ormconfig";
import { User } from "./user/user.entity";

AppDataSource.initialize()
  .then( async() => {
    const users = await AppDataSource.manager.find(User)
    console.log('users', users)
  })
  .catch((err) => {
    console.error("Error during Data Source initialization", err);
  });